from django.db import models

# Create your models here.
class PfMember(models.Model):
    nickname = models.CharField(max_length=50)
    headimg = models.CharField(max_length=255)
    sex = models.CharField(max_length=20)
    openid = models.CharField(max_length=100)
    unionid = models.CharField(max_length=100)
    watchtime = models.BigIntegerField()
    regtime = models.BigIntegerField()
    unwatchtime = models.BigIntegerField()
    realname = models.CharField(max_length=20)
    mobile = models.CharField(max_length=20)
    country = models.CharField(max_length=255, blank=True, null=True)
    province = models.CharField(max_length=255, blank=True, null=True)
    city = models.CharField(max_length=255, blank=True, null=True)
    addr = models.CharField(max_length=255)
    email = models.CharField(max_length=50)
    company = models.CharField(max_length=100)
    usertype = models.IntegerField()
    departid = models.IntegerField()
    dutyid = models.IntegerField()
    integral = models.PositiveIntegerField()
    disable = models.PositiveIntegerField()
    wxstatus = models.IntegerField()
    ctime = models.PositiveIntegerField()
    utime = models.PositiveIntegerField()
    score = models.IntegerField()
    parentid = models.IntegerField()
    isasyn = models.IntegerField()

    class Meta:
        app_label = 'quickdemo'
        managed = False
        db_table = 'pf_member'
        verbose_name = '用户表'